import request from "@/utils/request";

export function getList(data) {
  return request({
    url: '/pr/resource/list',
    method: 'post',
    data // 包含分页,模糊查询等参数
  })
}
export function delById(params) {
  return request({
    url: '/pr/resource/delById',
    method: 'get',
    params:params
  })
}
export function delBatch(params) {
  return request({
    url: '/pr/resource/delBatch',
    method: 'get',
    params:params
  })
}
export function addProject(data) {
  return request({
    url: '/pr/resource/add',
    method: 'post',
    data   // 这里post请求,参数名称为data!!!!
  })
}
export function updateProject(data) {
  return request({
    url: '/pr/resource/update',
    method: 'post',
    data
  })
}
